import request from "@/utils/request.js";

/**
 * Get prize draw list
 * @param data object
 */
export function getPrizeDrawList(data) {
  return request.get("draw/list", data);
}

/**
 * Get prize draw info
 * @param id int
 */
export function getPrizeDrawInfo(id) {
  return request.get(`draw/info/${id}`);
}

/**
 * Draw
 * @param id int
 */
export function draw(id) {
  return request.post(`draw/${id}`);
}

/**
 * Get user won physical prizes
 * @param data object
 */
export function getMyWonPrizes(data) {
  return request.get('draw/myPrizes', data);
}
